package deprecated;

import java.util.ArrayList;


/**
 * This class holds the months in a calendar
 * 
 * @author Matthew Edwards 
 * @version 3-5-11
 */


public class AppointmentCalendar{
    
    private ArrayList<AppointmentMonth> months;
    
    /**
     * Creates a new Appointment Calendar.
     * 
     * @param month the first month that will go into the calender.
     */
    public AppointmentCalendar(AppointmentMonth month){
    	months = new ArrayList<AppointmentMonth>();
    	months.add(month);
    }
    
    /**
     * Adds a month to the database
     * 
     * @param input
     *     The day to be input
     * @param month
     *     The number of the month to be put in
     */
    public void add(AppointmentMonth input, int index)
    {
        months.add(index, input);
    }
    
    /**
     * Gets the months inside the calendar
     * 
     * @return
     *    the months in the calendar
     */
    public ArrayList<AppointmentMonth> getMonths()
    {
        return months;
    }
    
    
}